# 获取某个会话是否有消息通知，同时返回消息条数
def is_notify_with_text(chat_shot):
    chat_shot_inner = chat_shot.GetChildren()[0]
    if len(chat_shot_inner.GetChildren()) >= 3:
        if chat_shot_inner.GetChildren()[2].ControlTypeName == 'TextControl':
            return True, chat_shot_inner.GetChildren()[2].Name
    return False, None
